<div class="readtext">
<div class="readicon">[%$form.formgroupname%]</div>
<div class="readline"></div>
<div class="content">
<form name="[%$form.formcode%]" id="[%$form.formcode%]" method="post" action="[%$form.action%]">
	<input type="hidden" name="linkurl" value="add">
	<input type="hidden" name="fgid" id="fgid" value="[%$form.fgid%]">
	<input type="hidden" name="formcode" id="formcode" value="[%$form.formcode%]">
	<input type="hidden" name="countattrs" id="countattrs" value="[%$form.countattrs%]">
	<input type="hidden" name="isseccode" id="isseccode" value="[%$form.isseccode%]">
	<table border="0" width="100%" style="margin-top: 0px;" class="table_style">
		<tr>
			<td colspan="2" class="trtitle02">[%$form.content%]<br></td>
		</tr>
		[%forlist from=$attr key=i%]
		[%if $attr[i].isline==1%]
		<tr class="trstyle2">
			<th colspan="2" class="trtitle02">[%$attr[i].typename%]</th>
		</tr>
		[%else%]
		<tr class="trstyle2">
			<th class="trtitle01" width="20%">[%$attr[i].typename%]</th>
			<td class="trtitle02" width="80%">
			[%if $attr[i].inputtype=='string'%]<input type="text"[%if $attr[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attr[i].validatetext%]$/ig)==null){alert('[%$attr[i].typename%][%$lngpack.inputerr%]');return false;}" [%/if%]name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" maxlength="[%$attr[i].attrlenther%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>[%/if%]
			[%if $attr[i].inputtype=='int'%]<input type="text" [%if $attr[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attr[i].validatetext%]$/ig)==null){alert('[%$attr[i].typename%][%$lngpack.inputerr%]');return false;}" [%/if%]name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" maxlength="[%$attr[i].attrlenther%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>[%/if%]
			[%if $attr[i].inputtype=='datetime'%]
									  <input type="text" name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>
			[%/if%]
			[%if $attr[i].inputtype=='img'%]
				<input type="text" name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>
			[%/if%]
			[%if $attr[i].inputtype=='addon'%]
				<input type="text" name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>
			[%/if%]
			[%if $attr[i].inputtype=='text'%]<textarea name="formatt[[%$attr[i].attrname%]]" cols="[%$attr[i].attrsize%]" rows="[%$attr[i].attrrow%]" class="infoInput">[%$attr[i].attrvalue%]</textarea>[%/if%]
			[%if $attr[i].inputtype=='select'%]
				<select size="1" name="formatt[[%$attr[i].attrname%]]">
				[%forlist from=$attr[i].attrvalue key=ii%]
					<option [%if $attr[i].attrvalue[ii].selected=='selected'%]selected="selected" [%/if%]value="[%$attr[i].attrvalue[ii].name%]">[%$attr[i].attrvalue[ii].name%]</option>
				[%/forlist%]
				</select>
			[%/if%]
			[%if $attr[i].inputtype=='radio'%]
				[%forlist from=$attr[i].attrvalue key=ii%]
				<input [%if $attr[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="formatt[[%$attr[i].attrname%]]" type="radio" value="[%$attr[i].attrvalue[ii].name%]" /> [%$attr[i].attrvalue[ii].name%]
				[%/forlist%]
			[%/if%]
			[%if $attr[i].inputtype=='checkbox'%]
				[%forlist from=$attr[i].attrvalue key=ii%]
					<input [%if $attr[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="formatt[[%$attr[i].attrname%]]" type="checkbox" value="[%$attr[i].attrvalue[ii].name%]" /> [%$attr[i].attrvalue[ii].name%]
				[%/forlist%]
			[%/if%]
			[%if $attr[i].typeremark!=''%]<span class="cautiontitle">[%$attr[i].typeremark%]</span>[%/if%]
			</td>
		</tr>
		[%/if%]
		[%/forlist%]
		[%if $form.isseccode==1%]
		<tr class="trstyle2">
			<th class="trtitle01" width="20%">[%$lngpack.verification%]</th>
			<td class="trtitle02" width="80%">
				<input type="text" id="code" name="seccode" maxlength="4" size="3" style="text-transform: uppercase;"/>
				<img title="验证码" id="[%$form.formcode%]seccodesrc" onclick="sessionimg('[%$form.formcode%]seccodesrc','[%$url%]')" src="[%$seccodelink%]" style="cursor: pointer;" align="absmiddle"/>
			</td>
		</tr>
		[%/if%]
		<tr class="trstyle2">
			<td colspan="2" height="50" id="center"><input type="submit" id="[%$form.formcode%]botton" name="Submit" value="[%$lngpack.submitbotton%]" class="inputsubmit01" /></td>
		</tr>
	</table>
</form>
</div>
</div>